package com.qfedu.yanglao20admin.handicapped.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.yanglao20.entity.handicapped.Relatives;

import java.util.List;

/**
 * @author yujie
 * @data 2023/4/27 16:45
 */
public interface RelativesDao extends BaseMapper<Relatives> {

    /**
     * 批量添加亲属关系信息
     *
     * @param relativesList
     */
    void insertAll(List<Relatives> relativesList);

    /**
     * 批量修改亲属关系信息
     *
     * @param relativesList
     */
    void updateAll(List<Relatives> relativesList);

    /**
     * 根据 id 查询亲属信息
     *
     * @param id
     * @return
     */
    List<Relatives> selectByAid(Integer id);
}
